package org.mercworks.igamexmlparser.dvo;

import java.util.ArrayList;
import java.util.List;

public class IGameModel
{
	protected List<Node> listNodes;
	
	public IGameModel()
	{
		listNodes = new ArrayList<Node>();
	}
	
	public List<Node> getListNodes()
	{
		return this.listNodes;
	}
	
	public void setListNodes(List<Node> listNodes)
	{
		this.listNodes = listNodes;
	}
	
	public String toString()
	{
		StringBuffer sb = new StringBuffer();
		
		sb.append("**** NODES ****\n{\n");
		
		if(listNodes != null)
		{
			for(Node node : listNodes)
			{
				if(node != null)
					sb.append(node.toString());
			}
		}
		sb.append("}\n\n");
		
		return sb.toString();
	}
}
